package com.example.feign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@Component
public class GitHubApiClientFailBack  implements GitHubApiClient{
    @Override
    //@RequestMapping(value = "/getbook", method = RequestMethod.POST)
    public String getbook( Map<String, Object> book){
        return "get boook error!";
    }

    @Override
    //@RequestMapping(value = "/myname", method = RequestMethod.POST)
    public Object myname( Map<String, Object> map)
    {
         return "m name error!" ;
    }
}
